
import React from 'react'
import { connect } from 'dva-no-router'
import { bindActionCreators } from 'redux'

import UI from '../../components/mylogin';

class MyLogin extends React.Component {
    render() {
        return (
            <UI {...this.props}/>
        )
    }
}

const actions = {
    change: (val) => ({type: 'mylogin/change', payload:val}),
    login: () => ({type: 'mylogin/login'}),
};

const mapProps = ({mylogin}) => ({...mylogin});

const mapActions = dispatch => ({
    ...bindActionCreators({...actions}, dispatch)
});

export default connect(mapProps, mapActions)(MyLogin)